<template>
  <div class="not-found">
    <h1 class="error-code">404</h1>
    <p class="error-message">哎呀！您要查找的页面不存在。</p>
    <router-link to="/" class="back-home">回到首页</router-link>
  </div>
</template>

<script>
// export default {
//   name: "NotFound",
// };
</script>

<style scoped>
.not-found {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  text-align: center;
}

.error-code {
  font-size: 10rem;
  margin: 0;
  color: #ff6b6b;
  font-weight: 700;
}

.error-message {
  font-size: 1.5rem;
  color: #555;
  margin: 1rem 0;
}

.back-home {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #007bff;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.back-home:hover {
  background-color: #0056b3;
}
</style>
